package chy.dao.impl;

import java.util.Date;
import java.util.List;

import org.springframework.orm.hibernate5.HibernateTemplate;

import chy.dao.ClaimVoucherDao;
import chy.entity.ClaimVoucher;
import chy.entity.Employee;
import chy.util.PaginationSupport;

public class ClaimVoucherDaoimpl implements ClaimVoucherDao {
	
private HibernateTemplate hibernateTemplate;

public HibernateTemplate getHibernateTemplate() {
	return hibernateTemplate;
}


public void setHibernateTemplate(HibernateTemplate hibernateTemplate) {
	this.hibernateTemplate = hibernateTemplate;
}



@Override
public ClaimVoucher getClaimVoucher(Long id) {
	// TODO Auto-generated method stub
	return this.getHibernateTemplate().get(ClaimVoucher.class, id);
}

@Override
public void update(ClaimVoucher claimVoucher) {
	// TODO Auto-generated method stub
	this.getHibernateTemplate().update(claimVoucher);
}

@Override
public void delete(ClaimVoucher claimVoucher) {
	// TODO Auto-generated method stub
	this.getHibernateTemplate().delete(claimVoucher);
}


@Override
public void save(ClaimVoucher claimVoucher) {
	// TODO Auto-generated method stub
	hibernateTemplate.save(claimVoucher);
}


@Override
public Integer getTotalCount(String string, Object[] array) {
	// TODO Auto-generated method stub
	return null;
}


@Override
public List<ClaimVoucher> findForPage(String string, int currPageNo, int pageSize, Object[] array) {
	// TODO Auto-generated method stub
	return null;
}

}
